package com.qiqu.service;

import com.qiqu.entity.Article;
import com.qiqu.utils.PagedResult;

import java.util.List;


public interface ArticleService {

    Article queryById(String id);

    Article insert(Article article);

    Article update(Article article);

    boolean deleteById(String id);

    PagedResult getPersonArticle(String wx,Integer page, Integer pageSize);

    PagedResult getArticle(Integer page, Integer pageSize,String keyword);

    PagedResult getArticleNear(Integer page, Integer pageSize,String keyword,String place);

    PagedResult getArticleAll(Integer page, Integer pageSize,String keyword,String place,String tag,String userId);

    PagedResult userLikeUPArticle(String userId, Integer page, Integer pageSize);

    PagedResult userLikeArticle(String userId, Integer page, Integer pageSize);

    PagedResult userCollection(String userId, Integer page, Integer pageSize);

    PagedResult getArticleLikeCounts(Integer page, Integer pageSize);
}